﻿/*
 * Created by SharpDevelop.
 * User: bcrawford
 * Date: 8/1/2014
 * Time: 8:23 AM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.ServiceProcess;

namespace RfiServiceStarter
{
  [RunInstaller(true)]
  public class ProjectInstaller : Installer
  {
    private ServiceProcessInstaller serviceProcessInstaller;
    private ServiceInstaller serviceInstaller;
    
    public ProjectInstaller()
    {
      serviceProcessInstaller = new ServiceProcessInstaller();
      serviceInstaller = new ServiceInstaller();
      // Here you can set properties on serviceProcessInstaller or register event handlers
      serviceProcessInstaller.Account = ServiceAccount.LocalService;
      
      serviceInstaller.ServiceName = RfiServiceStarter.MyServiceName;
      this.Installers.AddRange(new Installer[] { serviceProcessInstaller, serviceInstaller });
    }
  }
}
